package cj.web.admin.domain;

import java.io.Serializable;

public class DataTablePage implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -453238201820387626L;
	
	public int page;
	public int start;
	public int length;
	public int rows;
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public int getStart() {
		return start;
	}
	public void setStart(int start) {
		this.start = start;
	}
	public int getLength() {
		return length;
	}
	public void setLength(int length) {
		this.length = length;
	}
	public int getRows() {
		return rows;
	}
	public void setRows(int rows) {
		this.rows = rows;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + length;
		result = prime * result + page;
		result = prime * result + rows;
		result = prime * result + start;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DataTablePage other = (DataTablePage) obj;
		if (length != other.length)
			return false;
		if (page != other.page)
			return false;
		if (rows != other.rows)
			return false;
		if (start != other.start)
			return false;
		return true;
	}
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("DataTablePage [page=").append(page).append(", start=")
				.append(start).append(", length=").append(length)
				.append(", rows=").append(rows).append("]");
		return builder.toString();
	}
}